# -*- coding: utf-8 -*-
# https://blog.csdn.net/weixin_52040868
# 公众号：测个der
# 微信：qing_an_an

import sys
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *


class QWIN(QWidget):
    def __init__(self):
        super(QWIN, self).__init__()
        # 设置无边框
        self.setWindowFlags(Qt.FramelessWindowHint)

        self.setStyleSheet("""background-color:skyblue;""")

    def showMaximized(self):
        desktop = QApplication.desktop()
        # 获取屏幕尺寸
        rect = desktop.availableGeometry()
        # 应用程序事件循环
        self.setGeometry(rect)

if __name__ == '__main__':
    app = QApplication(sys.argv)
    win = QWIN()
    win.show()
    win.showMaximized()
    sys.exit(app.exec_())
